package com.acme.chat.client;

import com.acme.chat.message.Message;
import com.acme.chat.server.Server;

public interface ChatClient {
    // void incomingChat(String name, Message message);
    //
    // void userHasEntered(String name);
    //
    // void userHasLeft(String name);
    //
    // void disconnect();
    int MAX_NAME_LENGTH = 100;

    String DEFAULT_NAME = "Anonymous";

    String getRoom();

    String getName();

    boolean sendMessage(Message message);

    void connect(Server server);

    void disconnect();

    boolean isConnected();

    void incomingMessage(Message message);

    void addListener(ClientListener listener);

}
